package com.wing.cabinet.model.request;

import com.wing.cabinet.model.entity.StorageInventoryKnife;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.wing.cabinet.model.entity.StorageInventoryInoutDetail;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 暂存柜存刀/取刀;存/取维修/回收刀明细Form
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class StorageInventoryInoutDetailForm {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 暂存柜存刀id
     */
    private Long inoutId;

    /**
     * 柜子id
     */
    private Long cabId;

    /**
     * sku id
     */
    private Long skuId;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 企业id
     */
    private Long companyId;

    /**
     * 货道id
     */
    private Long spaceId;

    /**
     * 操作类型
     */
    private StorageInventoryInoutDetail.OperationType operationType;

    /**
     * 状态
     */
    private StorageInventoryInoutDetail.BusinessType businessType;

    /**
     * 业务类型
     */
    private StorageInventoryInoutDetail.BusinessTypeChecked businessTypeChecked;

    /**
     * 柜子编号
     */
    private String cabCode;

    /**
     * sku 编号
     */
    private String skuCode;

    /**
     * 货道编号
     */
    private String spaceCode;

    /**
     * 当前库存
     */
    private Integer quantityCurrent;

    /**
     * 变动后库存
     */
    private Integer quantityAfter;


    public interface Add{}

    public interface Update{}


    private String targetCabCode;

    private String targetSpaceCode;

    private String labelCode;

    private String checkCabCode;

    private String checkSpaceCode;

    private Integer quantityChecked;


    private List<StorageInventoryInoutDetailForm> detailList;

    private Boolean isCorrect;

    private Boolean businessTypeCorrect;

    private Boolean skuCorrect;

    /**
     * 企业编码
     */
    private String enterpriseCode;


    private String remark;

    private Integer remainingTime;

    private StorageInventoryKnife.LifeUnit lifeUnit;

    private Integer settingTime;

    private Integer useTime;

    private Boolean skuFlag;

    private BigDecimal price;

    private BigDecimal total;

    private StorageInventoryInoutDetail.LoadingType loadingType;


    private Long categoryId;

    private Integer quantitySingleCabCurrent;

    private Integer quantitySingleCabAfter;

    private Integer quantityCabCurrent;

    private Integer quantityCabAfter;

    private Integer quantityUserCurrent;

    private Integer quantityUserAfter;

    private String mainCabCode;

    private Integer quantityPack;

    private Integer quantityPackUnit;

    private Long packId;

    private String packName;

    private String unitName;

    private Integer quantityPackCurrent;

    private Integer quantityPackAfter;


    private Integer quantityPackSingleCabCurrent;

    private Integer quantityPackSingleCabAfter;


    private Integer quantityPackCabCurrent;

    private Integer quantityPackCabAfter;

    private String parentLabelCode;

    private String deviceCode;
}
